package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 比赛记录对象 billiards_game
 * 
 * @author ruoyi
 * @date 2024-12-11
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class BilliardsGame extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 比赛id */
    private Long gameId;

    /** 比赛名称 */
    @Excel(name = "比赛名称")
    private String gameName;

    /** 比赛类型 （0中式八球、1九球、2斯诺克、3追分） */
    @Excel(name = "比赛类型 ", readConverterExp = "0=中式八球、1九球、2斯诺克、3追分")
    private String gameType;

    /** 比赛时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "比赛时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gameTime;

    /** 帐号状态（0待开始 1进行中 2已结束） */
    @Excel(name = "帐号状态", readConverterExp = "0=待开始,1=进行中,2=已结束")
    private String status;

    private Long winMember;

    private Long loseMember;

    private String score;

    public void setGameId(Long gameId) 
    {
        this.gameId = gameId;
    }

    public Long getGameId() 
    {
        return gameId;
    }
    public void setGameName(String gameName) 
    {
        this.gameName = gameName;
    }

    public String getGameName() 
    {
        return gameName;
    }
    public void setGameType(String gameType) 
    {
        this.gameType = gameType;
    }

    public String getGameType() 
    {
        return gameType;
    }
    public void setGameTime(Date gameTime) 
    {
        this.gameTime = gameTime;
    }

    public Date getGameTime() 
    {
        return gameTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("gameId", getGameId())
            .append("gameName", getGameName())
            .append("gameType", getGameType())
            .append("gameTime", getGameTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
